package com.own.business.exam.business.service.impl;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.own.business.exam.business.service.ExamRuleAccountService;
import com.own.business.exam.entity.bo.ExamRuleAccountBo;
import com.own.business.exam.entity.map.ExamRuleAccountMapVo;
import com.own.business.exam.entity.po.ExamRuleAccount;
import com.own.business.exam.entity.query.ExamRuleAccountQuery;
import com.own.business.exam.entity.vo.ExamRuleAccountVo;
import com.own.business.exam.mapper.ExamRuleAccountMapper;
import com.own.component.common.base.service.impl.AbstractBaseBindOneService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * ExamRuleAccountServiceImpl
 *
 * @author 陈学礼 （你是一段成熟的代码，要学会自己改bug）
 * @version 4.0.0
 * @date 2021/05/18 14:43:47
 * @since 4.0.0
 */
@Slf4j
@Service
public class ExamRuleAccountServiceImpl extends AbstractBaseBindOneService<
        ExamRuleAccount,
        ExamRuleAccountBo,
        ExamRuleAccountVo,
        ExamRuleAccountMapVo,
        ExamRuleAccountQuery,
        ExamRuleAccountMapper
        > implements ExamRuleAccountService {

    /**
     * 获取fk的属性
     *
     * @return fk的属性
     */
    @Override
    public SFunction<ExamRuleAccount, Long> getFkExtractor() {
        return ExamRuleAccount::getFkRuleId;
    }

}
